from django import forms
from captcha.fields import CaptchaField


class LoginForm(forms.Form):
    username = forms.CharField(required=True, min_length=2)
    password = forms.CharField(required=True, min_length=3)


class CapchaLoginForm(forms.Form):
    captcha = CaptchaField(error_messages={"invalid": "验证码错误"})
